<style>
    .theLine {
        margin-top: 15px;
        margin-left: 0px;
        margin-bottom: 15px;
        margin-right: 500px;
        padding-top: 1px;
        padding-left: 0px;
        padding-bottom: 3px;
        padding-right: 0px;
        font: 14pt georgia, palatino, times, serif;
        font-weight: normal;
        text-align: left;
        background-color: transparent;
        color: #fff;
        border-bottom: 1px solid #000;
    }

	.thebtn {
        margin-left: 200px;
    }
	.sameline {
        float:left;
    }
</style>
<!--session[:user_id]-->
<%form_for :opinion,:url=>{:controller=>:review,:action=>:finishreview} do |f| %>
<div class="reginfo">
    <div class="theLine">
        <h3><span>点评</span></h3>
    </div>
    <div class="blank14">
    </div>
    <div class="theMainContent">
        <div class="sameline">
                口味：        
        <%= f.select(:taste_grade_id,DGrade.find(:all).collect {|c| [ c.grade_name, c.id ] },{:prompt => "请选择"}) %>
		</div>
        <div class="sameline">
                环境：        
        <%= f.select(:entironment_grade_id,DGrade.find(:all).collect {|c| [ c.grade_name, c.id ] },{:prompt => "请选择"}) %>
		</div>
        <div class="sameline">
            服务：        
        <%= f.select(:service_grade_id,DGrade.find(:all).collect {|c| [ c.grade_name, c.id ] },{:prompt => "请选择"}) %>
		</div>
		
        <div class="blank14">
        </div>
<!---->
		<div>
			点 评：
		</div>
		<%= f.text_area :opinion,:cols =>50, :rows =>5, :class =>''%>
        <div class="blank14">
        </div>
		<div>
			总体评价：		
		<%= f.select(:general_grade_id,DGrade.find(:all).collect {|c| [ c.grade_name, c.id ] },{:prompt => "请选择"}) %>
		</div>
        <div class="blank14">
        </div>
		<div>
			喜欢的菜：
			<%= f.text_field :favorite_menu,:size=>30, :class =>''%>
		</div>
        <div class="blank14">
        </div>		
		<div>
			分类标签：
			<%= f.text_field :classify,:size=>30, :class =>''%>
		</div>
        <div class="blank14">
        </div>		
		<div>
			交通停车：
			<%= f.text_field :parking,:size=>30, :class =>''%>
		</div>
        <div class="blank14">
        </div>				
		<div class="btns"><%= link_to '<span>提交点评</span> ','javascript:document.forms[0].submit(); ' %></div>	
        <div class="blank14">
        </div>	
		
    </div>
</div>
<% end %>
<%= error_messages_for :opinion%>
